{% extends "base.html" %}
{% block title %} {{entry.title}} - {{blog.title}} {% endblock %}
{% block head_block %}<script type="text/javascript" src="/static/js/jquery.form.utf8.js"></script>{% endblock %}

{% block content%}



{% if entry %}

<div class="post">
	<div id="post-{{entry.key}}">
		<div class="nifty">
			<h2>
				<a href="/{{ entry.link }}" rel="bookmark" title="Permanent Link to {{entry.title}}">{{entry.title}}</a>				
			</h2>			
		</div>

	{{ entry.content }}

	{%if relateposts%}
		<h4>Relate Posts:</h4>
		  <ul>
		{%for post in relateposts%}
		  <li><a href="/{{post.link}}">{{post.title}}</a></li>
		{%endfor%}
		</ul>
	{%endif%}
<br/><br/>
	<div class="meta">{% if entry.strtags %}Tags: {%for tag in entry.tags%}<a href="/tag/{{tag|urlencode}}">{{tag}}</a> {%endfor%}<br><br>{%endif%} 
		 发表于 {{entry.date|date:"Y-m-d H:i"}} &nbsp;&nbsp;
		 分类: {%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%}
		{%if self.is_admin%} | <a href="{{entry.edit_url}}">Edit</a>  {%endif%}  </div>
	</div>
	<hr/>
    <div class="post_nav">
        <div style="float:right;height:10px">
            {%for next in entry.next%}
            <a href="/{{next.link}}">{{next.title}}»</a>
            {%endfor%}
        </div>
        <div style="float:left">
            {%for prev in entry.prev%}
            <a href="/{{prev.link}}">«{{prev.title}}</a>
            {%endfor%}
        </div>
    </div>
    <div style="clear:both"></div>
<br/><br/>
	{% include "comments.html" %}
</div>


{%endif%}
{% endblock %}